<?php
/*
 * ******************************************************
 * CALLED WHEN AN ITEM IS POSTED FOR JOBS CATEOGRY
 * ******************************************************
 */
require_once 'table.php';
$tbl=new Model_Table_PropertyAttr();
$values=array();
$values['item_id']=$item->getItem_id ();
$values['agent_type']=Params::getParam('agent_type');
$values['offered']=Params::getParam('offered');
$values['rent']=Params::getParam('rent');
$values['period']=Params::getParam('period');
$values['property_type']=Params::getParam('property_type');
$values['condition']=Params::getParam('condition');
$values['date_available']=Params::getParam('date_available');
$tbl->insert($values);
unset($values['item_id']);
unset($values['agent_type']);
unset($values['offered']);
unset($values['rent']);
unset($values['period']);
unset($values['date_availble']);
$item->setTags(implode(',',$values));
$item->save();